widget: Fix checks in gtk_widget_snapshot()
authorTimm Bäder <mail@baedert.org>
Sun, 26 Mar 2017 10:45:50 +0000 (12:45 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 31 Mar 2017 07:50:39 +0000 (09:50 +0200)
commit8f2d0bc5a3e8d163f01b2371012d515f78b496c0
tree127c0d6423688ed4d65bbe55b5fcfa3fa32cb57d
parentaa9da1fe1fbd5d1ba58a91abda7bf358ed1be257
widget: Fix checks in gtk_widget_snapshot()

If the widget isn't drawable anyway, just return;

If the widget needs an allocate, print a warning, since it indicates a
problem in the widget workflow (e.g. forgot to size_allocate a child
widget).

This maches the previous checks in gtk_widget_draw (with the same
problems).
gtk/gtkwidget.c